package cn.supermaster.management.web.controller.monitor;

import cn.supermaster.management.common.controller.BaseController;
import cn.supermaster.management.web.service.monitor.IMonitorUserOnlineService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 在线用户监控
 */
@Controller
@RequestMapping("/monitor/online")
public class MonitorUserOnlineController extends BaseController {

    @Autowired
    IMonitorUserOnlineService monitorUserOnlineService;

    @RequiresPermissions("monitor:online:view")
    // @RequestMapping(value = "/", method = RequestMethod.GET)
    @GetMapping
    public String skipUserOnlineHtml() {
        return monitorUserOnlineService.skipUserOnlineHtml();
    }
}